// Playground - noun: a place where people can play

import UIKit

var str = "Hello, playground"


for i in 0...100
{
   var b = i * 10
}


var b = -180.0;
var r = 1.0;
//for ;b <= 180.0 ; b += 1.0
//{
//    var delta = b / 180.0 * M_PI
//    var heart = 1.0 - sin(delta)
//    
//}

var c = -360.0
//var du = 30.0 / 180 * M_PI
//var a1 = 2 * sin(du)
//var a2 = sin(2 * du)
//var b1 = 2 * cos(du)
//var b2 = cos(2 * du)

for ;c <= 360.0 ; c++
{
//     var x = a1 - a2
//     var y = b1 - b2
    var delta = c / 180 * M_PI
    var a1 = 2 * sin(delta)
    var a2 = sin(2 * delta)
    var b1 = 2 * cos(delta)
    var b2 = cos(2 * delta)
    var x = a1 - a2
    var y = b1 - b2
    
}
